
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>疑难杂症 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="虚拟机.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">笔记</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                <a href="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                    
                    1.操作系统——特殊的软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../阶段一笔记/2.命令.html">
            
                <a href="../阶段一笔记/2.命令.html">
            
                    
                    2.命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                <a href="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                    
                    3.SSH客户端的简单使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../阶段一笔记/4.用户权限相关命令.html">
            
                <a href="../阶段一笔记/4.用户权限相关命令.html">
            
                    
                    4.用户权限相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../阶段一笔记/5.系统信息相关命令.html">
            
                <a href="../阶段一笔记/5.系统信息相关命令.html">
            
                    
                    5.系统信息相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../阶段一笔记/6.vi命令.html">
            
                <a href="../阶段一笔记/6.vi命令.html">
            
                    
                    6.vi命令
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">软件安装及其使用</li>
        
        
    

    
        
        <li class="header">pycharm</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../阶段二笔记/pycharm安装及配置.html">
            
                <a href="../阶段二笔记/pycharm安装及配置.html">
            
                    
                    pycharm安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../阶段二笔记/pycharm使用.html">
            
                <a href="../阶段二笔记/pycharm使用.html">
            
                    
                    pycharm使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../阶段二笔记/pycharm激活问题.html">
            
                <a href="../阶段二笔记/pycharm激活问题.html">
            
                    
                    pycharm激活问题
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">电子书搭建</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../阶段二笔记/gitbook安装.html">
            
                <a href="../阶段二笔记/gitbook安装.html">
            
                    
                    gitbook安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" >
            
                <span>
            
                    
                    git
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../阶段二笔记/git简要.html">
            
                <a href="../阶段二笔记/git简要.html">
            
                    
                    git简要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../阶段二笔记/git安装及使用.html">
            
                <a href="../阶段二笔记/git安装及使用.html">
            
                    
                    git安装及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../阶段二笔记/git分支管理.html">
            
                <a href="../阶段二笔记/git分支管理.html">
            
                    
                    git分支管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../阶段二笔记/github使用.html">
            
                <a href="../阶段二笔记/github使用.html">
            
                    
                    github使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../搭建/gitee远程仓库搭建.html">
            
                <a href="../搭建/gitee远程仓库搭建.html">
            
                    
                    gitee远程仓库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../搭建/客户端与服务端的搭建.html">
            
                <a href="../搭建/客户端与服务端的搭建.html">
            
                    
                    客户端与服务端的搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" >
            
                <span>
            
                    
                    问题
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.6.1" data-path="../搭建/gitbook build没有summary.html">
            
                <a href="../搭建/gitbook build没有summary.html">
            
                    
                    gitbook build没有summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.2" data-path="typora结合picgo实现上传图片到gitee.html">
            
                <a href="typora结合picgo实现上传图片到gitee.html">
            
                    
                    typora结合picgo实现上传图片到gitee
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">软件工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../阶段二笔记/anaconda下载与使用.html">
            
                <a href="../阶段二笔记/anaconda下载与使用.html">
            
                    
                    anaconda下载与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../阶段二笔记/anaconda的使用.html">
            
                <a href="../阶段二笔记/anaconda的使用.html">
            
                    
                    anaconda的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../阶段二笔记/python3.6.4下载与安装.html">
            
                <a href="../阶段二笔记/python3.6.4下载与安装.html">
            
                    
                    python3.6.4下载与安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../阶段二笔记/typora安装及配置.html">
            
                <a href="../阶段二笔记/typora安装及配置.html">
            
                    
                    typora安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../阶段二笔记/ubuntu  tool安装.html">
            
                <a href="../阶段二笔记/ubuntu  tool安装.html">
            
                    
                    ubuntu  tool安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                <a href="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                    
                    Jetbrains系列产品重置试用方法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">python学习</li>
        
        
    

    
        
        <li class="header">面对过程</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../python面对过程学习/0.python学习.html">
            
                <a href="../python面对过程学习/0.python学习.html">
            
                    
                    0.python学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../python面对过程学习/1.python简介.html">
            
                <a href="../python面对过程学习/1.python简介.html">
            
                    
                    1.python简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../python面对过程学习/2.python程序no.1.html">
            
                <a href="../python面对过程学习/2.python程序no.1.html">
            
                    
                    2.python程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../python面对过程学习/3.多文件项目的演练.html">
            
                <a href="../python面对过程学习/3.多文件项目的演练.html">
            
                    
                    3.多文件项目的演练
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../python面对过程学习/4.程序注释.html">
            
                <a href="../python面对过程学习/4.程序注释.html">
            
                    
                    4.程序注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../python面对过程学习/5.算数运算符.html">
            
                <a href="../python面对过程学习/5.算数运算符.html">
            
                    
                    5.算数运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="../python面对过程学习/6.程序执行原理（科普）.html">
            
                <a href="../python面对过程学习/6.程序执行原理（科普）.html">
            
                    
                    6.程序执行原理（科普）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="../python面对过程学习/7.变量的基本使用.html">
            
                <a href="../python面对过程学习/7.变量的基本使用.html">
            
                    
                    7.变量的基本使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="../python面对过程学习/8.变量的命名.html">
            
                <a href="../python面对过程学习/8.变量的命名.html">
            
                    
                    8.变量的命名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="../python面对过程学习/9.判断（if）语句.html">
            
                <a href="../python面对过程学习/9.判断（if）语句.html">
            
                    
                    9.判断（if）语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="../python面对过程学习/10.运算符.html">
            
                <a href="../python面对过程学习/10.运算符.html">
            
                    
                    10.运算符.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="../python面对过程学习/11.循环.html">
            
                <a href="../python面对过程学习/11.循环.html">
            
                    
                    11.循环.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="../python面对过程学习/12.函数基础.html">
            
                <a href="../python面对过程学习/12.函数基础.html">
            
                    
                    12.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="../python面对过程学习/13.高级变量类型.html">
            
                <a href="../python面对过程学习/13.高级变量类型.html">
            
                    
                    13.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.15" data-path="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                <a href="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                    
                    14.综合应用 —— 名片管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.16" data-path="../python面对过程学习/15.变量进阶（理解）.html">
            
                <a href="../python面对过程学习/15.变量进阶（理解）.html">
            
                    
                    15.变量进阶（理解）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.17" data-path="../python面对过程学习/16.函数进阶.html">
            
                <a href="../python面对过程学习/16.函数进阶.html">
            
                    
                    16.函数进阶
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">面对对象</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../课余/编程exe.html">
            
                <a href="../课余/编程exe.html">
            
                    
                    编程exe
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="安装软件.html">
            
                <a href="安装软件.html">
            
                    
                    安装软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="激活码网站.html">
            
                <a href="激活码网站.html">
            
                    
                    激活码网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="虚拟机.html">
            
                <a href="虚拟机.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="9.4" data-path="疑难杂症.html">
            
                <a href="疑难杂症.html">
            
                    
                    疑难杂症
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >疑难杂症</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x65E0;&#x6CD5;&#x52A0;&#x8F7D;&#x6587;&#x4EF6;-xxxps1&#xFF0C;&#x56E0;&#x4E3A;&#x5728;&#x6B64;&#x7CFB;&#x7EDF;&#x4E2D;&#x7981;&#x6B62;&#x6267;&#x884C;&#x811A;&#x672C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;">&#x65E0;&#x6CD5;&#x52A0;&#x8F7D;&#x6587;&#x4EF6; xxx.ps1&#xFF0C;&#x56E0;&#x4E3A;&#x5728;&#x6B64;&#x7CFB;&#x7EDF;&#x4E2D;&#x7981;&#x6B62;&#x6267;&#x884C;&#x811A;&#x672C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</h1>
<p>1.windows&#x952E;+R &#x6216;&#x8005; &#x70B9;&#x51FB;&#x7535;&#x8111;&#x5DE6;&#x4E0B;&#x89D2;&#x6309;&#x94AE;&#xFF0C;&#x627E;&#x5230;&#x8FD0;&#x884C;&#x5E76;&#x70B9;&#x51FB;
2.&#x8F93;&#x5165;PowerShell&#xFF0C;&#x56DE;&#x8F66;&#x6216;&#x8005;&#x786E;&#x5B9A;
3.&#x7136;&#x540E;&#x8F93;&#x5165; set-executionpolicy remotesigned &#x56DE;&#x8F66;</p>
<p>4.<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/webp.webp" alt=""></p>
<h1 id="ubuntu&#x5982;&#x4F55;&#x4F7F;&#x7528;git&#x547D;&#x4EE4;&#x5C06;&#x9879;&#x76EE;&#x4ECE;github&#x514B;&#x9686;&#x4E0B;&#x6765;">Ubuntu&#x5982;&#x4F55;&#x4F7F;&#x7528;Git&#x547D;&#x4EE4;&#x5C06;&#x9879;&#x76EE;&#x4ECE;github&#x514B;&#x9686;&#x4E0B;&#x6765;</h1>
<p>1.ssh-keygen -t rsa -C &#x2018;&#x90AE;&#x7BB1;&#x2019;</p>
<p>&#x76F4;&#x63A5;&#x56DE;&#x8F66;&#xFF0C;&#x6709;&#x95EE;&#x662F;&#x5426;&#x8986;&#x76D6;&#x7684;&#x65F6;&#x5019;&#x9009;&#x62E9;&#x8986;&#x76D6;&#x3002;</p>
<p>2.cat /home/hadoop/.ssh/id_rsa.pub
&#x5728;&#x4E0A;&#x9762;&#x6709;&#x8FD4;&#x56DE;&#x4FE9;&#x4E2A;&#x8DEF;&#x5F84;&#xFF0C;id_rsa &#x662F;&#x79C1;&#x94A5;&#xFF0C;id_rsa.pub&#x662F;&#x516C;&#x94A5;&#x3002;
&#x90E8;&#x5206;&#x8F93;&#x51FA;&#x7ED3;&#x679C;&#xFF1A;</p>
<p>3.&#x5728;GitHub&#x4E0A;&#x6DFB;&#x52A0;ssh keys
&#x6B65;&#x9AA4;&#x4E00;&#xFF1A;</p>
<p>&#x6B65;&#x9AA4;&#x4E8C;&#xFF1A;&#x628A;id_rsa.pub&#x91CC;&#x7684;&#x5185;&#x5BB9;&#x590D;&#x5236;&#x5230;&#x4E0B;&#x9762;&#x7684;key&#x91CC;&#x9762;&#x3002;</p>
<p>4.git clone git@github.com:xiameimeig/python_cv.git</p>
<p>5.&#x4E0A;&#x4E00;&#x6B65;&#x8981;&#x662F;&#x6210;&#x529F;&#xFF0C;&#x90A3;&#x5C31;&#x597D;&#x4E86;&#xFF0C;&#x5C31;&#x4E0D;&#x9700;&#x8981;&#x4E0B;&#x9762;&#x7684;&#x6B65;&#x9AA4;&#x4E86;&#xFF0C;Ubuntu&#x91CC;&#x53EF;&#x80FD;&#x4F1A;&#x6709;&#x51FA;&#x73B0;&#x4E0B;&#x9762;&#x7684;&#x95EE;&#x9898;&#x3002;
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.</p>
<p>6.&#x7EC8;&#x7AEF;&#x8F93;&#x5165; eval &#x201C;$(ssh-agent -s)&#x201D;
&#x8F93;&#x51FA;&#x7ED3;&#x679C;&#xFF1A;Agent pid 14850</p>
<p>7.&#x7EC8;&#x7AEF;&#x8F93;&#x5165; ssh-add
&#x8F93;&#x51FA;&#x7ED3;&#x679C;&#xFF1A; Identity added: /home/hadoop/.ssh/id_rsa (/home/hadoop/.ssh/id_rsa)</p>
<p>8.git clone git@github.com:xiameimeig/python_cv.git
&#x6B64;&#x65F6;&#x5C31;&#x6CA1;&#x95EE;&#x9898;&#x4E86;</p>
<h1 id="&#x89E3;&#x51B3;&#x95EE;&#x9898;&#xFF1A;npm&#xFF08;node&#xFF09;&#x4E0D;&#x662F;&#x5185;&#x90E8;&#x6216;&#x5916;&#x90E8;&#x547D;&#x4EE4;&#x786E;&#x5B9E;&#x6709;&#x7528;">&#x89E3;&#x51B3;&#x95EE;&#x9898;&#xFF1A;npm&#xFF08;node&#xFF09;&#x4E0D;&#x662F;&#x5185;&#x90E8;&#x6216;&#x5916;&#x90E8;&#x547D;&#x4EE4;[&#x786E;&#x5B9E;&#x6709;&#x7528;]</h1>
<p>&#x4ECA;&#x5929;&#x5728;&#x5B89;&#x88C5;&#x4E86;nodejs&#x540E;&#xFF0C;&#x8FD0;&#x884C;npm install&#x547D;&#x4EE4;&#x65F6;&#xFF0C;&#x62A5;&#x9519;&#x4E86;&#xFF0C;&#x63D0;&#x793A; &apos;npm&apos; &#x4E0D;&#x662F;&#x5185;&#x90E8;&#x6216;&#x5916;&#x90E8;&#x547D;&#x4EE4;&#xFF0C;&#x8FD9;&#x662F;&#x600E;&#x4E48;&#x56DE;&#x4E8B;&#xFF1F;&#x4E0B;&#x9762;&#x6211;&#x4EEC;&#x6765;&#x770B;&#x4E00;&#x4E0B;&#x3002;</p>
<p>&#x65B9;&#x6CD5;/&#x6B65;&#x9AA4;</p>
<ol>
<li><p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#x91CC;&#x8FD0;&#x884C;npm install&#x547D;&#x4EE4;&#xFF0C;&#x5374;&#x63D0;&#x793A;&#x4E0D;&#x662F;&#x5185;&#x90E8;&#x6216;&#x5916;&#x90E8;&#x547D;&#x4EE4;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/340e4eb8b43ea8db28a40581189c2cf7deb21646.jpg" alt=""></p>
</li>
<li><p>&#x660E;&#x660E;&#x5DF2;&#x7ECF;&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;&#x4E86;nodejs&#x7684;&#xFF0C;&#x5E94;&#x8BE5;&#x8FD8;&#x9700;&#x8981;&#x8BBE;&#x7F6E;&#x4E00;&#x4E0B;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;&#x53F3;&#x952E;&#x70B9;&#x51FB;&#x5F00;&#x59CB;&#x83DC;&#x5355;&#x91CC;&#x7684;&#x2018;&#x6211;&#x7684;&#x7535;&#x8111;&#x2019;&#xFF0C;&#x7136;&#x540E;&#x70B9;&#x51FB;&#x5C5E;&#x6027;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/c8373cbc7dc5cf6744b12af58e96b814f5d02646.jpg" alt=""></p>
</li>
<li><p>&#x6253;&#x5F00;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x8FD9;&#x91CC;&#x7684;&#x2018;&#x9AD8;&#x7EA7;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;&#x2019;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/ce26355fd5460596cafa0b633e03c8d247fe2546.jpg" alt=""></p>
</li>
<li><p>&#x6253;&#x5F00;&#x7A97;&#x53E3;&#xFF0C;&#x70B9;&#x51FB;&#x91CC;&#x9762;&#x7684;&#x2018;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x2019;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/04d7a614f4d0b503bd3cb94dcc4ec28332bf2046.jpg" alt=""></p>
</li>
<li><p>&#x7136;&#x540E;&#x9009;&#x4E2D;path&#xFF0C;&#x70B9;&#x51FB;&#x4E0B;&#x65B9;&#x7684;&#x2018;&#x7F16;&#x8F91;&#x2019;&#x6309;&#x94AE; &#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/b442d6d246fe474eba6dcc0cb0ef354f51b81f46.jpg" alt=""></p>
<p>&#xFF08;&#x6211;&#x7684;&#x6210;&#x529F;&#x65B9;&#x5F0F;&#xFF1A;&#x9009;&#x4E2D;path &#x53CC;&#x51FB;&#x7F16;&#x8F91;&#xFF09;</p>
</li>
<li><p>&#x6253;&#x5F00;&#x7F16;&#x8F91;&#x7A97;&#x53E3;&#x540E;&#xFF0C;&#x628A;&#x5B89;&#x88C5;&#x7684;nodejs&#x7684;&#x8DEF;&#x5F84;&#x653E;&#x5230;&#x6700;&#x540E;&#x9762;&#xFF0C;&#x8BB0;&#x5F97;&#x524D;&#x9762;&#x8981;&#x52A0;&#x4E0A;&#x5206;&#x53F7;&#x518D;&#x52A0;&#x8DEF;&#x5F84;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/460fdc8333bf3bef4ea1af0b3f3ea8db564a1a46.jpg" alt=""></p>
</li>
<li><p>&#x518D;&#x6B21;&#x8FD0;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x53D1;&#x73B0;&#x4E0D;&#x518D;&#x63D0;&#x793A; npm&#x7684;&#x95EE;&#x9898;&#x4E86;&#xFF0C;&#x63D0;&#x793A;&#x7684;&#x662F;node&#x4E0D;&#x662F;&#x5185;&#x90E8;&#x6216;&#x5916;&#x90E8;&#x547D;&#x4EE4;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/c3c22dbf3bef354f2c564b8d23db574afb321b46.jpg" alt=""></p>
</li>
<li><p>&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x628A;&#x521A;&#x624D;&#x76EE;&#x5F55;&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x7684; node32.exe&#x6216;node64.exe&#x6539;&#x540D;&#x4E3A;node.exe</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/3aae2b4f50b8b43ed635a8f97132939c2df71946.jpg" alt=""></p>
</li>
<li><p>&#x518D;&#x6B21;&#x8FD0;&#x884C;install&#x547D;&#x4EE4;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x80FD;&#x6B63;&#x5E38;&#x5B89;&#x88C5;&#x4E86;&#x3002;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/340e4eb8b43ea8db28a40581189c2cf7deb21646.jpg" alt=""></p>
</li>
</ol>
<h1 id="&#x89E3;&#x51B3;-npm-err-path-usrlocallibnodemodulesnpm-&#x62A5;&#x9519;&#x95EE;&#x9898;"><a href="https://www.cnblogs.com/QQ2476127622/articles/11047429.html" target="_blank">&#x89E3;&#x51B3; npm ERR! path /usr/local/lib/node_modules/npm &#x62A5;&#x9519;&#x95EE;&#x9898;</a></h1>
<pre><code>npm ERR! path /usr/local/lib/node_modules/npm npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access &apos;/usr/local/lib/node_modules/npm&apos; npm ERR!  { [Error: EACCES: permission denied, access &apos;/usr/local/lib/node_modules/npm&apos;] npm ERR!   stack: npm ERR!    &apos;Error: EACCES: permission denied, access \&apos;/usr/local/lib/node_modules/npm\&apos;&apos;, npm ERR!   errno: -13, npm ERR!   code: &apos;EACCES&apos;, npm ERR!   syscall: &apos;access&apos;, npm ERR!   path: &apos;/usr/local/lib/node_modules/npm&apos; } npm ERR!  npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR!  npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR!     /Users/weilin/.npm/_logs/2019-06-18T12_13_50_554Z-debug.log
</code></pre><p>&#x200B;        &#x53EA;&#x9700;&#x5728;&#x524D;&#x9762;&#x52A0;sudo&#x5373;&#x53EF;</p>
<h1 id="&#x4F7F;&#x7528;npm&#x547D;&#x4EE4;&#x65F6;&#x62A5;&#x9519;&#x8BEF;error-eacces-permission-denied&#xFF0C;&#x5982;&#x4F55;&#x89E3;&#x51B3;&#xFF1F;">&#x4F7F;&#x7528;npm&#x547D;&#x4EE4;&#x65F6;&#x62A5;&#x9519;&#x8BEF;Error: EACCES: permission denied&#xFF0C;&#x5982;&#x4F55;&#x89E3;&#x51B3;&#xFF1F;</h1>
<p><a href="https://link.zhihu.com/?target=https%3A//docs.npmjs.com/getting-started/fixing-npm-permissions" target="_blank">started/fixing-npm-permissions</a></p>
<p>&#x5B98;&#x65B9;&#x63D0;&#x4F9B;&#x4E86;&#x4E24;&#x79CD;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<ol>
<li>&#x91CD;&#x65B0;&#x5B89;&#x88C5;&#x4E00;&#x4E2A;<a href="https://www.zhihu.com/search?q=node+version+manager&amp;search_source=Entity&amp;hybrid_search_source=Entity&amp;hybrid_search_extra={&quot;sourceType&quot;%3A&quot;article&quot;%2C&quot;sourceId&quot;%3A250812475}" target="_blank">node version manager</a>&#x3002;&#xFF08;&#x5B98;&#x65B9;&#x63A8;&#x8350;&#xFF09;
&#x53C2;&#x8003;&#x5730;&#x5740;&#xFF1A;<a href="https://link.zhihu.com/?target=https%3A//docs.npmjs.com/getting-started/installing-node" target="_blank">https://docs.npmjs.com/getting-started/installing-node</a>
&#x6CE8;&#xFF1A;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x6BD4;&#x8F83;&#x7E41;&#x7410;&#xFF0C;&#x6211;&#x9009;&#x62E9;&#x7684;&#x662F;&#x7B2C;2&#x79CD;&#x65B9;&#x6848;&#x3002;</li>
</ol>
<pre><code class="lang-text">2.&#x6539;&#x53D8;npm&#x9ED8;&#x8BA4;&#x7684;&#x8DEF;&#x5F84;&#x3002;
&#x6B65;&#x9AA4;&#x5982;&#x4E0B;&#xFF1A;
&#x8FDB;&#x5165;&#x7EC8;&#x7AEF;&#xFF0C;&#x4F9D;&#x6B21;&#x8F93;&#x5165;&#x4E00;&#x4E0B;&#x547D;&#x4EE4;
&#xFF08;1&#xFF09;&#x521B;&#x5EFA;global&#x5B89;&#x88C5;&#x4EFB;&#x52A1;&#x7684;&#x76EE;&#x5F55;
mkdir ~/.npm-global
&#xFF08;2&#xFF09;&#x914D;&#x7F6E;npm&#x4F7F;&#x7528;&#x65B0;&#x7684;&#x76EE;&#x5F55;
npm config set prefix &apos;~/.npm-global&apos;
&#xFF08;3&#xFF09;&#x5728;~/.profile&#x6587;&#x4EF6;&#x4E2D;&#x589E;&#x52A0;&#x914D;&#x7F6E;
export PATH=~/.npm-global/bin:$PATH
&#xFF08;4&#xFF09;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7ACB;&#x5373;&#x751F;&#x6548;
source ~/.profile
&#xFF08;5&#xFF09;&#x91CD;&#x65B0;&#x6267;&#x884C;&#x547D;&#x4EE4;
npm install -g xxxx
</code></pre>
<h1 id="&#x89E3;&#x51B3;e-&#x65E0;&#x6CD5;&#x83B7;&#x5F97;&#x9501;-varlibdpkglock-frontend---open-11-&#x8D44;&#x6E90;&#x6682;&#x65F6;&#x4E0D;&#x53EF;&#x7528;--&#x95EE;&#x9898;">&#x89E3;&#x51B3;&#x2018;E: &#x65E0;&#x6CD5;&#x83B7;&#x5F97;&#x9501; /var/lib/dpkg/lock-frontend - open (11: &#x8D44;&#x6E90;&#x6682;&#x65F6;&#x4E0D;&#x53EF;&#x7528;) &#x2019; &#x95EE;&#x9898;</h1>
<p>&#x62A5;&#x9519;</p>
<p><code>&#x65E0;&#x6CD5;&#x83B7;&#x5F97;&#x9501; /var/lib/dpkg/lock-frontend - open (11: &#x8D44;&#x6E90;&#x6682;&#x65F6;&#x4E0D;&#x53EF;&#x7528;)</code> </p>
<p>&#x9996;&#x5148;&#x67E5;&#x770B;&#x4E0B;</p>
<p><code>ls /var/lib/dpkg/lock-frontend</code>
&#x7136;&#x540E;&#x5220;&#x9664;</p>
<p><code>sudo rm -r -f /var/lib/dpkg/lock-frontend</code>
&#x5982;&#x679C;&#x4F9D;&#x7136;&#x62A5;&#x9519;</p>
<p><code>&#x65E0;&#x6CD5;&#x83B7;&#x5F97;&#x9501; /var/lib/dpkg/lock - open (11: &#x8D44;&#x6E90;&#x6682;&#x65F6;&#x4E0D;&#x53EF;&#x7528;) &#x2019;</code>
&#x5220;&#x9664;</p>
<p><code>sudo  rm  -r -f /var/lib/dpkg/lock</code></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="虚拟机.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 虚拟机">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"疑难杂症","level":"9.4","depth":1,"previous":{"title":"虚拟机","level":"9.3","depth":1,"path":"问题/虚拟机.md","ref":"./问题/虚拟机.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"问题/疑难杂症.md","mtime":"2022-01-10T16:19:03.053Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T13:44:59.630Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

